<template>
  <div>
      <h3>我是父组件---{{ count }}</h3>
      <Son @sendCount="fn"/>
  </div>
</template>

<script>
import Son from './Son.vue'
export default {
    components: {
        Son
    },
    data() {
        return {
            count: ""
        }
    },
    methods: {
        fn(value) {
            this.count = value
            console.log(value)
        }
    }
}
</script>

<style>

</style>